package com.health.db.service.user.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.health.db.dao.user.ICourseShareJournalDao;
import com.health.db.model.CourseShareJournal;
import com.health.db.model.CourseShareJournalExample;
import com.health.db.model.UserAccountJournalTemp;
import com.health.db.service.user.ICourseShareJournalService;

@Component("courseShareJournalService")
public class CourseShareJournalServiceImpl implements ICourseShareJournalService {
 
	@Autowired
	ICourseShareJournalDao courseShareJournalDao ;

	public ICourseShareJournalDao getCourseShareJournalDao() {
		return courseShareJournalDao;
	}

	public void setCourseShareJournalDao(
			ICourseShareJournalDao courseShareJournalDao) {
		this.courseShareJournalDao = courseShareJournalDao;
	}

	@Override
	public int insert(CourseShareJournal record) {
		// TODO Auto-generated method stub
		return courseShareJournalDao.insert(record);
	}

	@Override
	public List<CourseShareJournal> selectByExample(
			CourseShareJournalExample example) {
		// TODO Auto-generated method stub
		return courseShareJournalDao.selectByExample(example);
	}

	@Override
	public int updateByPrimaryKeySelective(CourseShareJournal record) {
		// TODO Auto-generated method stub
		return courseShareJournalDao.updateByPrimaryKeySelective(record);
	}

	@Override
	public List<CourseShareJournal> selectByUserId(Long userId) {
		// TODO Auto-generated method stub
		return courseShareJournalDao.selectByUserId(userId);
	}

	@Override
	public List<UserAccountJournalTemp> selectCourseShareJournalSimple(
			CourseShareJournalExample example) {
		// TODO Auto-generated method stub
		return courseShareJournalDao.selectCourseShareJournalSimple(example);
	}
}
